#!/usr/env/bin python
# -*- coding: utf-8 -*-

# @Time    : 2020-08-03 11:46 上午
# @Author  : yangdy
# @File    : 2020-08-03.415.字符串相加
# @Software: PyCharmCE
from my_methods import *


class Solution:
    def addStrings(self, num1: str, num2: str) -> str:
        l1 = len(num1)
        l2 = len(num2)
        ans = ''
        ans_int = 0
        p = 1
        for i in range(l1-1, -1, -1):
            ans_int += (ord(num1[i]) - ord('0')) * p
            p *= 10
        p = 1
        for i in range(l2-1, -1, -1):
            ans_int += (ord(num2[i]) - ord('0')) * p
            p *= 10
        ans = str(ans_int)
        return ans


questions = [
    ('123', '234',),
]

work(questions, lambda q: Solution().addStrings(q[0], q[1]))
